<template>
<div class="headline">
    <div class="title" slot="title">
        <h3>
            <slot name="title"></slot>
        </h3>
        <a-icon @click="headerControl" class="img" type="form" /> 
        <div  v-if="flageshow" class="headerControl">
        <header-control></header-control>
        </div>
    </div>
    <div class="inquire">
    <slot  name="inquire"></slot>
    </div>
    
</div>
        
</template>

<script>
import HeaderControl from '../HeaderControl/index.vue'
    export default {
        data(){
            return{
                flageshow:false
            }
        },
        components:{
            HeaderControl
        },
        methods:{
            headerControl(){
                this.flageshow=!this.flageshow
                console.log('111111111');
            }
        }
    }
</script>

<style lang="less" scoped>
.headline{
    display: flex;
    justify-content: space-between;
    align-items: center;
   
    .title{
        box-sizing: border-box;
        padding: 10px 20px;
        display: flex;
        align-items: center;
        position:relative;
        h3{
            height: 24px;
            font-family: PingFangSC-Medium;
            font-size: 16px;
            color: #333333;
            text-align: left;
            line-height: 24px;
            font-weight: 700;
        }
        .img{
            margin-left: 10px;
            width: 13.93px;
            height: 13.93px;
            background: #fff;
        }
        .headerControl{
        position:absolute;
        top: 0;
        left:100%;
        z-index: 1;
        background-color: #fff;
    }
    }
    .inquire{
        flex: 1;
    }
    
}
</style>